#define _CRT_SECURE_NO_WARNINGS 1
#include<bits/stdc++.h>
using namespace std;
const int N = 1000010;
priority_queue<int> pq;

int main() {
    ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
    int n; cin >> n;
    for (int i = 1; i <= n; i++) {
        int x; cin >> x;
        pq.push(x);
    }
    while (pq.size() > 1) {
        int x = pq.top(); pq.pop();
        int y = pq.top(); pq.pop();
        pq.push(x - y);
    }
    if (pq.top() <= 1) cout << "Yes" << '\n';
    else cout << "No" << '\n';

    return 0;
}